import Field from '../utils/Field'
export default class Entity {

    constructor() {
        let fields: Field[] = this['fields'];
        let __proto__ = this['__dirty__'] = this['__dirty__'] || {};
        if (fields && fields.length > 0) {
            fields.forEach(function (f) {
                __proto__['__' + f.propertyKey] = null
            })
        }
    }

    fill(_id, cb?: Function): Promise<any> {
        return null
    }

    save(cb?: Function): Promise<any> {
        return null
    }
    remove(cb?: Function): Promise<any> {
        return null
    }

    getBeanJSON() {
        return null
    }
}